package com.greenx.hello;

/**
 * 
 * @author StephenXianweiZhang
 *
 */
public class Hw {

	
	public static void main(String[] args){
		String str="/group/actuate-employee-i-select/homepage";
		
		int index=str.lastIndexOf("/");
		System.out.println(index);
		
		System.out.println(str.substring(0, str.lastIndexOf("/")));
		
	}
}
